#include <stdio.h>
#include <stdlib.h>
#include "heap.h"

const int length = 10;

void printArray(int* a, int length)
{
    printf("call printArray\n");
    for (int i = 0; i < length; ++i)
    {
        printf("%d,", a[i]);
    }
    printf("\n");
}

int main(int argc, char const *argv[])
{
    int a[length] = {150, 80, 40, 30, 10, 70, 110, 100, 20, 90};
    printArray(a, length);
    buildheap(a, length);
    printArray(a, length);
    deleteMin(a, length);
    deleteMin(a, length -1);
    printArray(a, length);    
    return 0;
}